package com.blindBox.front.mapper;

import com.blindBox.front.dao_pojo.Paper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.Map;
import  java.util.List;

@Mapper
public interface PaperMapper extends BaseMapper<Paper>
{
  //查询出所有纸条的id集合
  public List<Integer> getPaperIdsByList(@Param("sex")Integer sex,@Param("u_id")Integer u_id);
  //恢复所有纸条为未被抽取的状态
  public void emptyAllPaperStatus(Integer sex);
  //当前用户拥有的所有纸条
  public List<Paper> getUserAllPapers(Integer u_id);
}
